<%@ page import="com.entity.user" %>
<%--
  Created by IntelliJ IDEA.
  User: 刘锦华
  Date: 2022/2/22
  Time: 13:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
    <style type="text/css">
      body{
        background-image:  linear-gradient(to bottom,#243949 0%,#517fa4 100%);

        /*background-image: url("image/1.jpg");*/
        background-size: 100%;
      }
      canvas{
        position: absolute;
        top: 0;
        z-index: -1;
      }
    </style>

  </head>
  <body>
  <form action="login" method="post">
    <input type="text" placeholder="用户名" id="name" name="name">
    <span style="color: red; " id="s">
      ${requestScope.message}
    </span>
    <br>
    <input type="password" placeholder="密码" id="pwd" name="pwd"><br>
    <input type="submit" value="登录" onclick="panDuan()">
    <a href="Register.jsp">注册</a>
  </form>
  </body>
</html>
<script>
  var n=document.getElementById("name");
  n.onclick=function () {
    var s=document.getElementById("s");
    s.remove();
  }
</script>